package com.lqq.designPattern.behavioral_pattern.observer;

//微信用户（具体观察者）
public class WeiXinUser implements Observer{
    private String name;
    public WeiXinUser(String name) {
        this.name = name;
    }
    @Override
    public void update(String msg) {
        System.out.println("粉丝" + name + "收到消息：" + msg);
    }
}
